package com.katze.boot.system.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("sys_dict")
@ExcelIgnoreUnannotated
public class SysDict implements Serializable {

    private static final long serialVersionUID = 7780820231535870010L;

    @TableId(value = "dict_id", type = IdType.AUTO)
    private Long dictId;

    @ExcelProperty(value = "键")
    @TableField(value = "`key`")
    @Deprecated
    private String key;

    @ExcelProperty(value = "值")
    @TableField(value = "`value`")
    private String value;

    @ExcelProperty(value = "表名")
    private String tableName;

    @ExcelProperty(value = "字段名")
    private String fieldName;

    @ExcelProperty(value = "字段描述")
    private String fieldDesc;

    @ExcelProperty(value = "描述")
    private String description;

    @TableField("`order`")
    private int order;

    @ExcelProperty(value = "状态")
    private Integer status = 1;

    private transient String combinationId;

    private transient Integer childrenNum;
}
